﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PHRClient.PatientForms
{
    public partial class HistoryMDIParent : Form
    {
        //private int childFormNumber = 0;

        public HistoryMDIParent()
        {
            this.TopLevel = false;
            this.AutoScroll = true;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Dock = DockStyle.Fill;

            InitializeComponent();
            History5 _history5 = new History5();
            //_history5.MdiParent = this;
            _history5.Dock = DockStyle.Fill;
            _history5.Show();

            PHRDetails.DataContainer.Controls.Clear();
            PHRDetails.DataContainer.Controls.Add(this);
        }

        /*private void ShowNewForm(object sender, EventArgs e)
        {
            Form childForm = new Form();
            childForm.MdiParent = this;
            childForm.Text = "Window " + childFormNumber++;
            childForm.Show();
        }

        private void OpenFile(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();
            openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            openFileDialog.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*";
            if (openFileDialog.ShowDialog(this) == DialogResult.OK)
            {
                string FileName = openFileDialog.FileName;
            }
        }

        private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog();
            saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            saveFileDialog.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*";
            if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
            {
                string FileName = saveFileDialog.FileName;
            }
        }
        */
        private void ExitToolsStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void CutToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }

        private void CopyToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }

        private void PasteToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }


        private void CascadeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.Cascade);
        }

        private void TileVerticalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileVertical);
        }

        private void TileHorizontalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void ArrangeIconsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.ArrangeIcons);
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            History5 _history5 = new History5();
            _history5.MdiParent = this;
            _history5.Dock = DockStyle.Fill;
            _history5.Show();
        }

        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            History2 _history2 = new History2();
            _history2.MdiParent = this;
            _history2.Dock = DockStyle.Fill;
            _history2.Show();
        }

        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            History3 _history3 = new History3();
            _history3.MdiParent = this;
            _history3.Dock = DockStyle.Fill;
            _history3.Show();
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            History4 _history4 = new History4();
            _history4.MdiParent = this;
            _history4.Dock = DockStyle.Fill;
            _history4.Show();
        }


    }
}
